#!/usr/bin/ksh

# Script name: readinput.ksh

print -n "Enter a string: "

while read var
do
	print "Keyboard input is: $var"
	if [[ $var != "finished" ]]
	then
		print -n "\nEnter a string: " 
	else
		break
	fi
done

print "End of input."
